import React from "react"
import { Route ,Switch,withRouter} from "react-router-dom"
import Brand from './brand/Index'
import Series from './series/Index'
import Model from './models/Index'
import NotPage from './NotPage.js'

import Test from './Test'
function App(){
    return (
        <Switch>
            <Route  exact path="/" component={Brand} />
            <Route path="/series" component={Series} />
            <Route path="/model" component={Model} />
            <Route path="/brand" component={Brand} />
            <Route path="/test" component={Test} />
            <Route component={NotPage}/>
        </Switch>
    )
}

export default withRouter(App)